import 'package:get/get.dart';
import 'package:flutter/material.dart';
import 'package:getx_example/lang/en_US.dart';
import 'package:getx_example/lang/zh_hans.dart';
import 'package:getx_example/lang/zh_hk.dart';

class MyTranslationService extends Translations {
  static Locale? get locale => Get.deviceLocale;
  static const fallbackLocale = Locale('en', 'US');

  @override
  Map<String, Map<String, String>> get keys => {
        'en_US': enUS,
        'zh_Hans': zhHans,
        'zh_HK': zhHK,
      };
}
